package lp.xian.materials.service;

import java.text.ParseException;
import java.util.List;
import lp.xian.materials.domain.Purchase;
import lp.xian.materials.vo.PurchaseVo;

/**
 * 采购订单Service接口
 *
 * @author ruoyi
 * @date 2023-08-06
 */
public interface IPurchaseService
{
    /**
     * 查询采购订单
     *
     * @param purchaseId 采购订单主键
     * @return 采购订单
     */
    public Purchase selectPurchaseByPurchaseId(Integer purchaseId);

    /**
     * 查询采购订单列表
     *
     * @param purchase 采购订单
     * @return 采购订单集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增采购订单
     *
     * @param purchase 采购订单
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改采购订单
     *
     * @param purchase 采购订单
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 批量删除采购订单
     *
     * @param purchaseIds 需要删除的采购订单主键集合
     * @return 结果
     */
    public int deletePurchaseByPurchaseIds(Integer[] purchaseIds);

    /**
     * 删除采购订单信息
     *
     * @param purchaseId 采购订单主键
     * @return 结果
     */
    public int deletePurchaseByPurchaseId(Integer purchaseId);

    int auditPurchase(PurchaseVo purchaseVo) /*throws ParseException*/;
}
